package com.sanji.springmvc.web;

import com.sanji.springmvc.domain.DemoObj;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by joe on 17-4-23.
 */
@Controller
public class ConverterController {

  @RequestMapping(value = "/convert",produces = {"application/x-wisely"},method = RequestMethod.POST)
  public @ResponseBody DemoObj convert(@RequestBody DemoObj demoObj){
    return demoObj;
  }
}
